//
// Functions to set a flash message and to get it back.
// Imitating rails in this point =)
// We require jquery.cookie.js.
//
function set_flash(message) {
  $.cookie("flash", message);
}

function get_flash(return_and_clean) {
  var msg = $.cookie("flash");

  if (return_and_clean == true) { $.cookie("flash", null); }
  return msg;
}
